/* 字体对齐 */
.-text-right {
    text-align: right;
}
.-text-center {
    text-align: center;
}
.-text-left {
    text-align: left;
}

/* 字体样式 */
.-text-through {
    text-decoration: line-through;
}

/* 字体粗细 */
.-font-bold {
    font-weight: bold;
}
.-font-normal {
    font-weight: normal;
}


/* 文字溢出处理 */
@mixin line {
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
  @for $i from 2 through 5 {
    .-line-#{$i} {
      @include line;
      -webkit-line-clamp: $i;
    }
  }
  .-line-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* 定义字体(px)单位，大于或等于20的都为px单位字体 */
  @for $i from 12 through 40 {
    .-font-#{$i} {
      font-size: $i + px;
    }
  }
  